<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPHINXsys/src/shared/sphinxsys_system/sph_system.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_3dc1dabd28ba78e072d14d3fcfc90454.html">SPHINXsys</a></li><li class="navelem"><a class="el" href="dir_48ea983704c43b6d88c1fa3f4d09e369.html">src</a></li><li class="navelem"><a class="el" href="dir_0a0d9ef1793521534f0094f317758287.html">shared</a></li><li class="navelem"><a class="el" href="dir_a9c3ba9b250bbba97b908bc7d8bc1bbc.html">sphinxsys_system</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">sph_system.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="sph__system_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;boost/program_options.hpp&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keyword">namespace </span>po = boost::program_options;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;base_data_package.h&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="sph__data__conainers_8h.html">sph_data_conainers.h</a>&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="general__dynamics_8h.html">general_dynamics.h</a>&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_s_p_h.html">SPH</a> </div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;{</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keyword">class </span>SPHBody;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keyword">class </span>SPHSystem;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_s_p_h_system.html">   28</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_s_p_h_system.html">SPHSystem</a></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#aff1f80d45ce8f125ae264bf114a61f3d">SPHSystem</a>(Vecd lower_bound, Vecd upper_bound, Real particle_spacing_ref, </div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;            <span class="keywordtype">int</span> number_of_threads = tbb::task_scheduler_init::automatic);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_s_p_h_system.html">SPHSystem</a>();</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_s_p_h_system.html#ae4ffcd3165391e69937ff6d3a8e657cf">   46</a></span>&#160;        Vecd lower_bound_, <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#ae4ffcd3165391e69937ff6d3a8e657cf">upper_bound_</a>;    </div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_s_p_h_system.html#a56fee8e9bed249be5efddcb0f27cd2ad">   47</a></span>&#160;        task_scheduler_init <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#a56fee8e9bed249be5efddcb0f27cd2ad">tbb_init_</a>;      </div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_s_p_h_system.html#a18aacd036d995a9eda973508ac985881">   48</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#a18aacd036d995a9eda973508ac985881">particle_spacing_ref_</a>;         </div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_s_p_h_system.html#ab9c75ff3c6f4769dce0647a8a5453a1d">   50</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#ab9c75ff3c6f4769dce0647a8a5453a1d">restart_step_</a>;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_s_p_h_system.html#ab7507f0cd0f83c6ccb5986ed23a58e91">   52</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#ab7507f0cd0f83c6ccb5986ed23a58e91">run_particle_relaxation_</a>;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_s_p_h_system.html#a66b753581ddeda0bf9ee71a8b7c126b2">   54</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#a66b753581ddeda0bf9ee71a8b7c126b2">reload_particles_</a>;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_s_p_h_system.html#a0d48a961d6eb6dd5b305a83f8740453b">   57</a></span>&#160;        <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#a0d48a961d6eb6dd5b305a83f8740453b">bodies_</a>;          </div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_s_p_h_system.html#ac1c1dcabfcf5aa3b75d086c7f687a9f9">   58</a></span>&#160;        <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#ac1c1dcabfcf5aa3b75d086c7f687a9f9">fictitious_bodies_</a>;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_s_p_h_system.html#a843281f20669d47a24b25cdbf6b4b848">   59</a></span>&#160;        <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#a843281f20669d47a24b25cdbf6b4b848">real_bodies_</a>;     </div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#a6fc5a7a09c8fd0f132ff4278545ed26e">AddBody</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* body);</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#ac4584bfade77735b5a117ff65078f94a">AddRealBody</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* body);</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#ac4144e28958fedfc262088e50b90daaf">AddFictitiousBody</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* body);</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#ab8b3a25843e5772325cf5850736016aa">InitializeSystemCellLinkedLists</a>();</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#a8d927fd24142fb345ab7ee02956ff3c1">InitializeSystemConfigurations</a>();</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_s_p_h_system.html#acc13a32d289db428a82a00721f727253">handleCommandlineOptions</a>(<span class="keywordtype">int</span> ac, <span class="keywordtype">char</span>* av[]);</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    };</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;}</div><div class="ttc" id="namespace_s_p_h_html_ab8b3224d963eb73d7febbf0d5346f429"><div class="ttname"><a href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPH::SPHBodyVector</a></div><div class="ttdeci">StdVec&lt; SPHBody * &gt; SPHBodyVector</div><div class="ttdef"><b>Definition:</b> sph_data_conainers.h:26</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_a18aacd036d995a9eda973508ac985881"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#a18aacd036d995a9eda973508ac985881">SPH::SPHSystem::particle_spacing_ref_</a></div><div class="ttdeci">Real particle_spacing_ref_</div><div class="ttdef"><b>Definition:</b> sph_system.h:48</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_a8d927fd24142fb345ab7ee02956ff3c1"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#a8d927fd24142fb345ab7ee02956ff3c1">SPH::SPHSystem::InitializeSystemConfigurations</a></div><div class="ttdeci">void InitializeSystemConfigurations()</div><div class="ttdef"><b>Definition:</b> sph_system.cpp:51</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_ac4144e28958fedfc262088e50b90daaf"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#ac4144e28958fedfc262088e50b90daaf">SPH::SPHSystem::AddFictitiousBody</a></div><div class="ttdeci">void AddFictitiousBody(SPHBody *body)</div><div class="ttdef"><b>Definition:</b> sph_system.cpp:38</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_ab9c75ff3c6f4769dce0647a8a5453a1d"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#ab9c75ff3c6f4769dce0647a8a5453a1d">SPH::SPHSystem::restart_step_</a></div><div class="ttdeci">int restart_step_</div><div class="ttdef"><b>Definition:</b> sph_system.h:50</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_a6fc5a7a09c8fd0f132ff4278545ed26e"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#a6fc5a7a09c8fd0f132ff4278545ed26e">SPH::SPHSystem::AddBody</a></div><div class="ttdeci">void AddBody(SPHBody *body)</div><div class="ttdef"><b>Definition:</b> sph_system.cpp:28</div></div>
<div class="ttc" id="general__dynamics_8h_html"><div class="ttname"><a href="general__dynamics_8h.html">general_dynamics.h</a></div><div class="ttdoc">This is the particle dynnamics apllicable for all type bodies. </div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_ac4584bfade77735b5a117ff65078f94a"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#ac4584bfade77735b5a117ff65078f94a">SPH::SPHSystem::AddRealBody</a></div><div class="ttdeci">void AddRealBody(SPHBody *body)</div><div class="ttdef"><b>Definition:</b> sph_system.cpp:33</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_aff1f80d45ce8f125ae264bf114a61f3d"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#aff1f80d45ce8f125ae264bf114a61f3d">SPH::SPHSystem::SPHSystem</a></div><div class="ttdeci">SPHSystem(Vecd lower_bound, Vecd upper_bound, Real particle_spacing_ref, int number_of_threads=tbb::task_scheduler_init::automatic)</div><div class="ttdoc">Default constructor. Note that the lower and upper domian bounds are used to build mesh cell linked l...</div><div class="ttdef"><b>Definition:</b> sph_system.cpp:14</div></div>
<div class="ttc" id="sph__data__conainers_8h_html"><div class="ttname"><a href="sph__data__conainers_8h.html">sph_data_conainers.h</a></div><div class="ttdoc">Set up of basic data structure. </div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_a0d48a961d6eb6dd5b305a83f8740453b"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#a0d48a961d6eb6dd5b305a83f8740453b">SPH::SPHSystem::bodies_</a></div><div class="ttdeci">SPHBodyVector bodies_</div><div class="ttdef"><b>Definition:</b> sph_system.h:57</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_ac1c1dcabfcf5aa3b75d086c7f687a9f9"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#ac1c1dcabfcf5aa3b75d086c7f687a9f9">SPH::SPHSystem::fictitious_bodies_</a></div><div class="ttdeci">SPHBodyVector fictitious_bodies_</div><div class="ttdef"><b>Definition:</b> sph_system.h:58</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_ae4ffcd3165391e69937ff6d3a8e657cf"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#ae4ffcd3165391e69937ff6d3a8e657cf">SPH::SPHSystem::upper_bound_</a></div><div class="ttdeci">Vecd upper_bound_</div><div class="ttdef"><b>Definition:</b> sph_system.h:46</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_ab8b3a25843e5772325cf5850736016aa"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#ab8b3a25843e5772325cf5850736016aa">SPH::SPHSystem::InitializeSystemCellLinkedLists</a></div><div class="ttdeci">void InitializeSystemCellLinkedLists()</div><div class="ttdef"><b>Definition:</b> sph_system.cpp:43</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_ab7507f0cd0f83c6ccb5986ed23a58e91"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#ab7507f0cd0f83c6ccb5986ed23a58e91">SPH::SPHSystem::run_particle_relaxation_</a></div><div class="ttdeci">bool run_particle_relaxation_</div><div class="ttdef"><b>Definition:</b> sph_system.h:52</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_a843281f20669d47a24b25cdbf6b4b848"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#a843281f20669d47a24b25cdbf6b4b848">SPH::SPHSystem::real_bodies_</a></div><div class="ttdeci">SPHBodyVector real_bodies_</div><div class="ttdef"><b>Definition:</b> sph_system.h:59</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_a66b753581ddeda0bf9ee71a8b7c126b2"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#a66b753581ddeda0bf9ee71a8b7c126b2">SPH::SPHSystem::reload_particles_</a></div><div class="ttdeci">bool reload_particles_</div><div class="ttdef"><b>Definition:</b> sph_system.h:54</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_a56fee8e9bed249be5efddcb0f27cd2ad"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#a56fee8e9bed249be5efddcb0f27cd2ad">SPH::SPHSystem::tbb_init_</a></div><div class="ttdeci">task_scheduler_init tbb_init_</div><div class="ttdef"><b>Definition:</b> sph_system.h:47</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html_acc13a32d289db428a82a00721f727253"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html#acc13a32d289db428a82a00721f727253">SPH::SPHSystem::handleCommandlineOptions</a></div><div class="ttdeci">void handleCommandlineOptions(int ac, char *av[])</div><div class="ttdef"><b>Definition:</b> sph_system.cpp:63</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_body_html"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_body.html">SPH::SPHBody</a></div><div class="ttdoc">SPHBody is a base body with basic data and functions. Its derived class can be a real fluid body...</div><div class="ttdef"><b>Definition:</b> base_body.h:73</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html">SPH::SPHSystem</a></div><div class="ttdoc">The SPH system managing objects in the system level. </div><div class="ttdef"><b>Definition:</b> sph_system.h:28</div></div>
<div class="ttc" id="namespace_s_p_h_html"><div class="ttname"><a href="namespace_s_p_h.html">SPH</a></div><div class="ttdef"><b>Definition:</b> base_body_supplementary.cpp:11</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
